﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.ServiceModel;
using Order;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var fac = new ChannelFactory<IOrder>("order");
            var prox = fac.CreateChannel();
            var response = prox.PlaceOrder(new OrderRequest { ItemCode = "i81u812", Qty = 42 });
            Console.WriteLine(response.TrackingCode);
        }
    }
}
